//
//  DetectResult.swift
//  FaceVerify
//
//  Created by duzexu on 2017/3/2.
//  Copyright © 2017年 duzexu. All rights reserved.
//

import UIKit
import HandyJSON

struct DetectResult: HandyJSON {
    var faceId: String?
    var faceRectangle: [String:String]?
    var faceAttributes: FaceAttribute?
    
    func string() -> String {
        return "年龄"+"\(faceAttributes?.age)" + "\n性别"+"\(faceAttributes?.gender)"+"\n笑容"+"\(faceAttributes?.smile)"
    }
}

struct FaceAttribute: HandyJSON {
    var age: String?
    var gender: String?
    var smile: String?
    var glasses: String?
    var headPose: [String:String]?
    var facialHair: [String:String]?
}
